package io.itit.ecp.admin.server.service;

import icu.mhb.mybatisplus.plugln.base.service.JoinIService;
import io.itit.ecp.admin.server.entity.DeviceRunningValueEntity;

import java.util.List;
import java.util.Optional;


public interface IDeviceRunningValueService extends JoinIService<DeviceRunningValueEntity> {

    String getValue(String deviceId, String physicalModelId);

    boolean existsValueByDeviceIdAndPhysicalModelId(String deviceId, String physicalModelId);

    Optional<DeviceRunningValueEntity> findByDeviceIdAndPhysicalModelId(String deviceId, String physicalModelId);

    List<DeviceRunningValueEntity> findByDeviceId(String deviceId);

    void removeByDeviceIdAndPhysicalModelId(String deviceId, String physicalModelId);
}
